//
//  HEIMConversationManager.h
//  HealthFamily
//
//  Created by 吴欧 on 2021/3/5.
//  Copyright © 2021 honglutec. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HEIMSession.h"

NS_ASSUME_NONNULL_BEGIN

/**
 会话管理类,负责消息,最近会话的读写和管理
 */
@interface HEIMConversationManager : NSObject

+ (instancetype)sharedManager;

/**
 *  注册会话
 */
- (void)registeSession:(HEIMSession *)session;


/**
 *  返回会话
 */
- (HEIMSession *)sessionById:(NSString *)sessionId;

/**
 *  移除所有会话
 */
- (void)removeAllSessions;

/**
 *  移除会话
 */
- (void)removesessionById:(NSString *)sessionId;

@end

NS_ASSUME_NONNULL_END
